class CreateTickets < ActiveRecord::Migration
  def self.up
    create_table :tickets do |t|
	t.float :ticket_price
	t.float :ticket_amount
	t.integer :ticket_section
	t.integer :ticket_row
	t.integer :ticket_seat
	t.integer :game_id
	t.integer :user_id
      t.timestamps
    end

	add_index :tickets, :game_id
	add_index :tickets, :user_id
  end

  def self.down
    drop_table :tickets
  end
end
